package cn.wsn2018.tools.dao;

import cn.wsn2018.tools.model.User;

import java.util.List;

/**
 * Created by NZX on 2018/11/19.
 */
public interface UserDao{
    List<User> listAllUsers(String pageNum,String pageSize);
    List<User> listUsersByRole(String role,String pageNum,String pageSize);
    User getUserByName(String username);
    boolean saveUser(User user);
    boolean deleteUser(String username);
    boolean updateUser(String formerName,User user);
}
